/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.chlitina.store.modules.expert.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.chlitina.store.common.service.BaseService;
import com.chlitina.store.modules.expert.dao.CustomerExamParametersDao;
import com.chlitina.store.modules.expert.entity.CustomerExamParameters;

/**
 * 顾客检查参数Service
 * @author lvbo
 * @version 2013-06-04
 */
@Component
@Transactional(readOnly = true)
public class CustomerExamParametersService extends BaseService {

	@SuppressWarnings("unused")
	private static Logger logger = LoggerFactory.getLogger(CustomerExamParametersService.class);
	
	@Autowired
	private CustomerExamParametersDao customerExamParametersDao;

	public CustomerExamParameters get(Long id) {
		return customerExamParametersDao.findOne(id);
	}
	
	@Transactional(readOnly = false)
	public void save(CustomerExamParameters customerExamParameters) {
		customerExamParametersDao.save(customerExamParameters);
	}
	
	@Transactional(readOnly = false)
	public void delete(CustomerExamParameters customerExamParameters) {
		customerExamParametersDao.delete(customerExamParameters);
	}
	
	@Transactional(readOnly = false)
	public List<CustomerExamParameters> getByExamID(long id) {
		return (List<CustomerExamParameters>) customerExamParametersDao.getByExamID(id);
	}

	@Transactional(readOnly = false)
	public List<CustomerExamParameters> findAll() {
		return (List<CustomerExamParameters>) customerExamParametersDao.findAll();
	}
	
}
